<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>热门实习 - 就业易招</title>
    <link rel="stylesheet" href="../css/internships.css">
    <link rel="stylesheet" href="https://at.alicdn.com/t/c/font_4305711_8j1kcfuob8.css">
</head>
<body>
    <!-- 页面头部 -->
    <header class="page-header">
        <div class="back-button">
            <i class="iconfont icon-back"></i>
        </div>
        <h1 class="title">热门实习</h1>
        <div class="header-actions">
            <button class="filter-button" id="filterBtn">
                <i class="iconfont icon-filter"></i>
            </button>
        </div>
    </header>

    <!-- 搜索区域 -->
    <div class="search-area">
        <div class="search-bar">
            <i class="iconfont icon-search"></i>
            <input type="text" placeholder="搜索实习岗位、公司名称">
        </div>
    </div>

    <!-- 筛选标签 -->
    <div class="filter-tabs">
        <div class="tabs-container">
            <div class="tab-scroll">
                <div class="tab active">全部</div>
                <div class="tab">计算机</div>
                <div class="tab">金融</div>
                <div class="tab">人工智能</div>
                <div class="tab">互联网</div>
                <div class="tab">电子商务</div>
                <div class="tab">软件工程</div>
                <div class="tab">教育</div>
                <div class="tab">市场营销</div>
                <div class="tab">设计</div>
            </div>
        </div>
    </div>

    <!-- 高级筛选区域 -->
    <div class="advanced-filter">
        <div class="filter-option" id="regionFilter">
            地区 <i class="iconfont icon-arrow-down"></i>
        </div>
        <div class="filter-option" id="salaryFilter">
            薪资 <i class="iconfont icon-arrow-down"></i>
        </div>
        <div class="filter-option" id="timeFilter">
            时间 <i class="iconfont icon-arrow-down"></i>
        </div>
        <div class="filter-option" id="moreFilter">
            更多 <i class="iconfont icon-arrow-down"></i>
        </div>
    </div>

    <!-- 排序选项 -->
    <div class="sort-bar">
        <div class="sort-option active">
            推荐 <i class="iconfont icon-check"></i>
        </div>
        <div class="sort-option">
            最新 <i class="iconfont icon-arrow-down"></i>
        </div>
        <div class="sort-option">
            薪资 <i class="iconfont icon-arrow-down"></i>
        </div>
    </div>

    <!-- 主内容区域 -->
    <div class="main-content">
        <div class="internships-list">
            <!-- 实习岗位卡片 1 -->
            <a href="internship-detail.html" class="job-card">
                <div class="job-card-content">
                    <img src="../images/company-logos/bytedance.png" alt="字节跳动" class="company-logo">
                    <div class="job-info">
                        <div class="job-header">
                            <h2 class="job-title">后端开发实习生</h2>
                            <div class="salary">300-400元/天</div>
                        </div>
                        <div class="job-tags">
                            <div class="tag">Java</div>
                            <div class="tag">Spring</div>
                            <div class="tag">MySQL</div>
                            <div class="hot-tag">热门</div>
                        </div>
                        <div class="company-info">
                            <p class="company-name">
                                字节跳动
                                <i class="iconfont icon-verified verified-icon"></i>
                            </p>
                            <p class="company-desc">互联网 | 10000人以上</p>
                        </div>
                        <div class="job-highlights">
                            <div class="recruiter-info">
                                <img src="../images/avatars/recruiter1.jpg" alt="招聘者" class="recruiter-avatar">
                                <span>张经理 · 技术总监</span>
                            </div>
                            <div class="location">
                                <i class="iconfont icon-location"></i> 北京
                            </div>
                        </div>
                    </div>
                </div>
                <div class="job-meta-tags">
                    <div class="meta-tag">周末双休</div>
                    <div class="meta-tag">五险一金</div>
                    <div class="meta-tag">转正机会</div>
                    <div class="meta-tag">可实习6个月+</div>
                </div>
            </a>

            <!-- 实习岗位卡片 2 -->
            <a href="internship-detail.html" class="job-card">
                <div class="job-card-content">
                    <img src="../images/company-logos/alibaba.png" alt="阿里巴巴" class="company-logo">
                    <div class="job-info">
                        <div class="job-header">
                            <h2 class="job-title">前端开发实习生</h2>
                            <div class="salary">280-350元/天</div>
                        </div>
                        <div class="job-tags">
                            <div class="tag">React</div>
                            <div class="tag">TypeScript</div>
                            <div class="tag">前端工程化</div>
                        </div>
                        <div class="company-info">
                            <p class="company-name">
                                阿里巴巴
                                <i class="iconfont icon-verified verified-icon"></i>
                            </p>
                            <p class="company-desc">互联网 | 10000人以上</p>
                        </div>
                        <div class="job-highlights">
                            <div class="recruiter-info">
                                <img src="../images/avatars/recruiter2.jpg" alt="招聘者" class="recruiter-avatar">
                                <span>李总监 · 资深前端</span>
                            </div>
                            <div class="location">
                                <i class="iconfont icon-location"></i> 杭州
                            </div>
                        </div>
                    </div>
                </div>
                <div class="job-meta-tags">
                    <div class="meta-tag">包三餐</div>
                    <div class="meta-tag">免费班车</div>
                    <div class="meta-tag">弹性工作</div>
                    <div class="meta-tag">可转正</div>
                </div>
            </a>

            <!-- 实习岗位卡片 3 -->
            <a href="internship-detail.html" class="job-card">
                <div class="job-card-content">
                    <img src="../images/company-logos/tencent.png" alt="腾讯" class="company-logo">
                    <div class="job-info">
                        <div class="job-header">
                            <h2 class="job-title">产品运营实习生</h2>
                            <div class="salary">200-300元/天</div>
                        </div>
                        <div class="job-tags">
                            <div class="tag">数据分析</div>
                            <div class="tag">活动策划</div>
                            <div class="tag">用户运营</div>
                            <div class="new-tag">新品</div>
                        </div>
                        <div class="company-info">
                            <p class="company-name">
                                腾讯
                                <i class="iconfont icon-verified verified-icon"></i>
                            </p>
                            <p class="company-desc">互联网 | 10000人以上</p>
                        </div>
                        <div class="job-highlights">
                            <div class="recruiter-info">
                                <img src="../images/avatars/recruiter3.jpg" alt="招聘者" class="recruiter-avatar">
                                <span>王主管 · 产品运营</span>
                            </div>
                            <div class="location">
                                <i class="iconfont icon-location"></i> 深圳
                            </div>
                        </div>
                    </div>
                </div>
                <div class="job-meta-tags">
                    <div class="meta-tag">交通补贴</div>
                    <div class="meta-tag">餐补</div>
                    <div class="meta-tag">免费健身</div>
                    <div class="meta-tag">周末双休</div>
                </div>
            </a>

            <!-- 实习岗位卡片 4 -->
            <a href="internship-detail.html" class="job-card">
                <div class="job-card-content">
                    <img src="../images/company-logos/baidu.png" alt="百度" class="company-logo">
                    <div class="job-info">
                        <div class="job-header">
                            <h2 class="job-title">算法工程师实习生</h2>
                            <div class="salary">350-450元/天</div>
                        </div>
                        <div class="job-tags">
                            <div class="tag">机器学习</div>
                            <div class="tag">Python</div>
                            <div class="tag">深度学习</div>
                            <div class="hot-tag">热门</div>
                        </div>
                        <div class="company-info">
                            <p class="company-name">
                                百度
                                <i class="iconfont icon-verified verified-icon"></i>
                            </p>
                            <p class="company-desc">互联网 | 10000人以上</p>
                        </div>
                        <div class="job-highlights">
                            <div class="recruiter-info">
                                <img src="../images/avatars/recruiter4.jpg" alt="招聘者" class="recruiter-avatar">
                                <span>赵博士 · 算法负责人</span>
                            </div>
                            <div class="location">
                                <i class="iconfont icon-location"></i> 北京
                            </div>
                        </div>
                    </div>
                </div>
                <div class="job-meta-tags">
                    <div class="meta-tag">导师制</div>
                    <div class="meta-tag">论文合作</div>
                    <div class="meta-tag">转正机会</div>
                    <div class="meta-tag">弹性工作</div>
                </div>
            </a>

            <!-- 实习岗位卡片 5 -->
            <a href="internship-detail.html" class="job-card">
                <div class="job-card-content">
                    <img src="../images/company-logos/xiaomi.png" alt="小米" class="company-logo">
                    <div class="job-info">
                        <div class="job-header">
                            <h2 class="job-title">UI设计实习生</h2>
                            <div class="salary">250-320元/天</div>
                        </div>
                        <div class="job-tags">
                            <div class="tag">UI设计</div>
                            <div class="tag">Figma</div>
                            <div class="tag">交互设计</div>
                        </div>
                        <div class="company-info">
                            <p class="company-name">
                                小米
                                <i class="iconfont icon-verified verified-icon"></i>
                            </p>
                            <p class="company-desc">互联网 | 10000人以上</p>
                        </div>
                        <div class="job-highlights">
                            <div class="recruiter-info">
                                <img src="../images/avatars/recruiter5.jpg" alt="招聘者" class="recruiter-avatar">
                                <span>刘设计 · 设计主管</span>
                            </div>
                            <div class="location">
                                <i class="iconfont icon-location"></i> 北京
                            </div>
                        </div>
                    </div>
                </div>
                <div class="job-meta-tags">
                    <div class="meta-tag">项目奖金</div>
                    <div class="meta-tag">绩效奖金</div>
                    <div class="meta-tag">技能培训</div>
                    <div class="meta-tag">优秀作品集</div>
                </div>
            </a>

            <!-- 实习岗位卡片 6 -->
            <a href="internship-detail.html" class="job-card">
                <div class="job-card-content">
                    <img src="../images/company-logos/jd.png" alt="京东" class="company-logo">
                    <div class="job-info">
                        <div class="job-header">
                            <h2 class="job-title">市场营销实习生</h2>
                            <div class="salary">180-250元/天</div>
                        </div>
                        <div class="job-tags">
                            <div class="tag">市场推广</div>
                            <div class="tag">社交媒体</div>
                            <div class="tag">品牌营销</div>
                        </div>
                        <div class="company-info">
                            <p class="company-name">
                                京东
                                <i class="iconfont icon-verified verified-icon"></i>
                            </p>
                            <p class="company-desc">电子商务 | 10000人以上</p>
                        </div>
                        <div class="job-highlights">
                            <div class="recruiter-info">
                                <img src="../images/avatars/recruiter6.jpg" alt="招聘者" class="recruiter-avatar">
                                <span>陈经理 · 市场总监</span>
                            </div>
                            <div class="location">
                                <i class="iconfont icon-location"></i> 北京
                            </div>
                        </div>
                    </div>
                </div>
                <div class="job-meta-tags">
                    <div class="meta-tag">成长机会</div>
                    <div class="meta-tag">活动福利</div>
                    <div class="meta-tag">带薪年假</div>
                    <div class="meta-tag">餐补</div>
                </div>
            </a>
        </div>

        <!-- 加载更多 -->
        <div class="load-more">
            <button class="load-more-btn">
                <i class="iconfont icon-refresh"></i> 加载更多
            </button>
        </div>
    </div>

    <!-- 底部导航栏 -->
    <nav class="tab-bar">
        <a href="../index.html" class="tab-item">
            <i class="iconfont icon-home"></i>
            <span>首页</span>
        </a>
        <a href="jobs.html" class="tab-item">
            <i class="iconfont icon-job"></i>
            <span>职位</span>
        </a>
        <a href="internships.html" class="tab-item active">
            <i class="iconfont icon-internship"></i>
            <span>实习</span>
        </a>
        <a href="messages.html" class="tab-item">
            <i class="iconfont icon-message"></i>
            <span>消息</span>
        </a>
        <a href="profile.html" class="tab-item">
            <i class="iconfont icon-user"></i>
            <span>我的</span>
        </a>
    </nav>

    <!-- 筛选弹窗 -->
    <div class="filter-modal" id="filterModal">
        <div class="filter-panel">
            <div class="filter-header">
                <h2>筛选条件</h2>
                <button class="close-filter" id="closeFilter">×</button>
            </div>
            <div class="filter-content">
                <!-- 地区筛选 -->
                <div class="filter-section">
                    <h3>地区</h3>
                    <div class="filter-options">
                        <div class="filter-chip active">不限</div>
                        <div class="filter-chip">北京</div>
                        <div class="filter-chip">上海</div>
                        <div class="filter-chip">广州</div>
                        <div class="filter-chip">深圳</div>
                        <div class="filter-chip">杭州</div>
                        <div class="filter-chip">南京</div>
                        <div class="filter-chip">武汉</div>
                        <div class="filter-chip">成都</div>
                        <div class="filter-chip">西安</div>
                    </div>
                </div>

                <!-- 薪资筛选 -->
                <div class="filter-section">
                    <h3>日薪范围</h3>
                    <div class="filter-options">
                        <div class="filter-chip active">不限</div>
                        <div class="filter-chip">150元以下</div>
                        <div class="filter-chip">150-200元</div>
                        <div class="filter-chip">200-300元</div>
                        <div class="filter-chip">300-400元</div>
                        <div class="filter-chip">400-500元</div>
                        <div class="filter-chip">500元以上</div>
                    </div>
                </div>

                <!-- 学历筛选 -->
                <div class="filter-section">
                    <h3>学历要求</h3>
                    <div class="filter-options">
                        <div class="filter-chip active">不限</div>
                        <div class="filter-chip">大专</div>
                        <div class="filter-chip">本科</div>
                        <div class="filter-chip">硕士</div>
                        <div class="filter-chip">博士</div>
                    </div>
                </div>

                <!-- 实习时长 -->
                <div class="filter-section">
                    <h3>实习时长</h3>
                    <div class="filter-options">
                        <div class="filter-chip active">不限</div>
                        <div class="filter-chip">1-3个月</div>
                        <div class="filter-chip">3-6个月</div>
                        <div class="filter-chip">6个月以上</div>
                    </div>
                </div>

                <!-- 实习周期 -->
                <div class="filter-section">
                    <h3>实习周期</h3>
                    <div class="filter-options">
                        <div class="filter-chip active">不限</div>
                        <div class="filter-chip">一周5天</div>
                        <div class="filter-chip">一周4天</div>
                        <div class="filter-chip">一周3天</div>
                        <div class="filter-chip">一周2天及以下</div>
                    </div>
                </div>
            </div>
            <div class="filter-footer">
                <button class="reset-btn" id="resetFilter">重置</button>
                <button class="confirm-btn" id="applyFilter">确定</button>
            </div>
        </div>
    </div>

    <!-- 加载状态 -->
    <div class="page-loading" style="display: none;">
        <div class="loading-spinner"></div>
    </div>

    <!-- JavaScript -->
    <script>
        // 筛选弹窗
        const filterBtn = document.getElementById('filterBtn');
        const filterModal = document.getElementById('filterModal');
        const closeFilter = document.getElementById('closeFilter');
        const resetFilter = document.getElementById('resetFilter');
        const applyFilter = document.getElementById('applyFilter');

        filterBtn.addEventListener('click', () => {
            filterModal.classList.add('show');
        });

        closeFilter.addEventListener('click', () => {
            filterModal.classList.remove('show');
        });

        resetFilter.addEventListener('click', () => {
            // 重置所有筛选选项
            const activeChips = document.querySelectorAll('.filter-chip.active');
            activeChips.forEach(chip => {
                chip.classList.remove('active');
            });
            
            // 选中所有"不限"选项
            const sections = document.querySelectorAll('.filter-section');
            sections.forEach(section => {
                const firstChip = section.querySelector('.filter-chip');
                if (firstChip) {
                    firstChip.classList.add('active');
                }
            });
        });

        applyFilter.addEventListener('click', () => {
            // 应用筛选条件
            filterModal.classList.remove('show');
            
            // 显示加载状态
            const pageLoading = document.querySelector('.page-loading');
            pageLoading.style.display = 'flex';
            
            // 模拟加载时间
            setTimeout(() => {
                pageLoading.style.display = 'none';
                
                // 这里可以添加实际筛选逻辑
                
                // 显示筛选成功的提示（可选）
                showToast('筛选条件已应用');
            }, 800);
        });

        // 筛选选项点击
        const filterChips = document.querySelectorAll('.filter-chip');
        filterChips.forEach(chip => {
            chip.addEventListener('click', () => {
                // 如果是同一组中的选项，先移除同组中所有active
                const parent = chip.parentElement;
                const siblings = parent.querySelectorAll('.filter-chip');
                siblings.forEach(sib => {
                    sib.classList.remove('active');
                });
                
                // 给当前点击的选项添加active
                chip.classList.add('active');
            });
        });

        // 筛选标签点击
        const tabs = document.querySelectorAll('.tab');
        tabs.forEach(tab => {
            tab.addEventListener('click', () => {
                tabs.forEach(t => t.classList.remove('active'));
                tab.classList.add('active');
                
                // 显示加载状态
                const pageLoading = document.querySelector('.page-loading');
                pageLoading.style.display = 'flex';
                
                // 模拟加载时间
                setTimeout(() => {
                    pageLoading.style.display = 'none';
                }, 600);
            });
        });

        // 排序选项点击
        const sortOptions = document.querySelectorAll('.sort-option');
        sortOptions.forEach(option => {
            option.addEventListener('click', () => {
                sortOptions.forEach(opt => opt.classList.remove('active'));
                option.classList.add('active');
                
                // 显示加载状态
                const pageLoading = document.querySelector('.page-loading');
                pageLoading.style.display = 'flex';
                
                // 模拟加载时间
                setTimeout(() => {
                    pageLoading.style.display = 'none';
                }, 600);
            });
        });

        // 高级筛选选项点击
        const filterOptions = document.querySelectorAll('.filter-option');
        filterOptions.forEach(option => {
            option.addEventListener('click', () => {
                filterModal.classList.add('show');
            });
        });

        // 加载更多按钮点击
        const loadMoreBtn = document.querySelector('.load-more-btn');
        loadMoreBtn.addEventListener('click', () => {
            // 显示加载状态
            const pageLoading = document.querySelector('.page-loading');
            pageLoading.style.display = 'flex';
            
            // 模拟加载时间
            setTimeout(() => {
                pageLoading.style.display = 'none';
                
                // 实际这里会加载更多内容
                // 这里仅做演示，显示没有更多内容的提示
                showToast('没有更多内容了');
                
                // 更改按钮状态
                loadMoreBtn.disabled = true;
                loadMoreBtn.innerHTML = '已全部加载';
                loadMoreBtn.style.opacity = '0.6';
            }, 1000);
        });

        // 显示提示消息
        function showToast(message) {
            // 先移除现有的toast
            const existingToast = document.querySelector('.toast-message');
            if (existingToast) {
                document.body.removeChild(existingToast);
            }
            
            // 创建新的toast
            const toast = document.createElement('div');
            toast.className = 'toast-message';
            toast.innerText = message;
            document.body.appendChild(toast);
            
            // 显示动画
            setTimeout(() => {
                toast.style.opacity = '1';
                toast.style.transform = 'translateX(-50%) translateY(0)';
            }, 10);
            
            // 自动隐藏
            setTimeout(() => {
                toast.style.opacity = '0';
                toast.style.transform = 'translateX(-50%) translateY(10px)';
                
                // 从DOM中移除
                setTimeout(() => {
                    document.body.removeChild(toast);
                }, 300);
            }, 2500);
        }
    </script>
</body>
</html> 